package com.csun.cmny.provider.model.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "cn_dmc_csun_gateway_bind")
public class DmcCsunGatewayBind {
    /**
     * 网关设备Id
     */
    @Id
    @Column(name = "gateway_id")
    private Long gatewayId;

    /**
     * 传感器id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 绑定类型 15-温湿度 16-人感
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * 是否绑定成功 0-未成功 1-已成功
     */
    @Column(name = "bind_status")
    private Integer bindStatus;
}